package com.hq.szgl.service.imp;

import org.eredlab.g4.arm.util.idgenerator.IDHelper;
import org.eredlab.g4.bmf.base.BaseServiceImpl;
import org.eredlab.g4.ccl.datastructure.Dto;
import org.eredlab.g4.ccl.datastructure.impl.BaseDto;

import com.hq.szgl.service.ShouZhiService;



public class ShouZhiServiceImp extends BaseServiceImpl implements ShouZhiService {

	@Override
	public Dto addShouZhi(Dto inDto) {
		Dto d=new BaseDto();
		//用系统的辅助工具类参数一个编号！
		String szid=IDHelper.getCodeID();
		inDto.put("detail_sn", szid);
		this.g4Dao.insert("szglDemo.saveShouZhi",inDto);
		d.put("detail_sn", szid);
		return d;
	}

	@Override
	public Dto deleteShouZhi(Dto dDto) {
		Dto d=new BaseDto();
		this.g4Dao.delete("szglDemo.deleteShouZhi",dDto);
		return d;
	}

	@Override
	public Dto updateShouZhi(Dto uDto) {
		Dto d=new BaseDto();
		this.g4Dao.update("szglDemo.updateShouZhi",uDto);
		return d;
	}

}
